export OSTYPE && make -C ./src.cpp/ 
make[1]: Entering directory '/home/jara/pictures/src.cpp'
echo linux-gnu
linux-gnu
g++ -g -O2 -fno-rtti -fno-exceptions -D_REENTRANT -fpermissive -DPOINTER_SIZE=64 -O2 -Wall -I./atoms/include/ -I./atoms/ -DERROR_HANDLER -DOPTIMISE_SPEED -DRasImg -O6 -c ras_img.cc  -o release/ras_img.o 
In file included from ras_img.cc:27:
raster.h:180:22: warning: ‘virtual void Raster1DAbstract::Get(Raster1DAbstract&) const’ was hidden [-Woverloaded-virtual=]
  180 |         virtual void Get(Raster1DAbstract &R1) const;
      |                      ^~~
raster.h:306:14: note:   by ‘Raster2DAbstract::Get’
  306 |         void Get(unsigned Offset2D, Raster1DAbstract &R1) MP_CONST;
      |              ^~~
raster.h:172:22: warning: ‘virtual void Raster1DAbstract::Get(unsigned int, RGBQuad*) const’ was hidden [-Woverloaded-virtual=]
  172 |         virtual void Get(unsigned x, RGBQuad *RGB) const {RGB->O=0;RGB->R=RGB->G=RGB->B=GetValue1D(x);};
      |                      ^~~
raster.h:306:14: note:   by ‘Raster2DAbstract::Get’
  306 |         void Get(unsigned Offset2D, Raster1DAbstract &R1) MP_CONST;
      |              ^~~
raster.h:184:22: warning: ‘virtual void Raster1DAbstract::Set(const Raster1DAbstract&)’ was hidden [-Woverloaded-virtual=]
  184 |         virtual void Set(const Raster1DAbstract &R1);
      |                      ^~~
raster.h:307:14: note:   by ‘Raster2DAbstract::Set’
  307 |         void Set(unsigned Offset2D, const Raster1DAbstract &R1);
      |              ^~~
raster.h:171:22: warning: ‘virtual void Raster1DAbstract::Set(unsigned int, const RGBQuad*)’ was hidden [-Woverloaded-virtual=]
  171 |         virtual void Set(unsigned x, const RGBQuad *RGB) {SetValue1D(x,(RGB->R+RGB->G+RGB->B)/3);};
      |                      ^~~
raster.h:307:14: note:   by ‘Raster2DAbstract::Set’
  307 |         void Set(unsigned Offset2D, const Raster1DAbstract &R1);
      |              ^~~
raster.h:226:20: warning: ‘virtual uint32_t Raster1DAbstractRGB::B(unsigned int) const’ was hidden [-Woverloaded-virtual=]
  226 |   virtual uint32_t B(unsigned x) const {return(GetValue1DRAW(3*x+2));}
      |                    ^
raster.h:338:18: note:   by ‘uint32_t Raster2DAbstractRGB::B(unsigned int, unsigned int)’
  338 |         uint32_t B(unsigned x, unsigned y) {return(GetValue2DRAW(3*x+2,y));}
      |                  ^
raster.h:225:20: warning: ‘virtual uint32_t Raster1DAbstractRGB::G(unsigned int) const’ was hidden [-Woverloaded-virtual=]
  225 |   virtual uint32_t G(unsigned x) const {return(GetValue1DRAW(3*x+1));}
      |                    ^
raster.h:337:18: note:   by ‘uint32_t Raster2DAbstractRGB::G(unsigned int, unsigned int)’
  337 |         uint32_t G(unsigned x, unsigned y) {return(GetValue2DRAW(3*x+1,y));}
      |                  ^
raster.h:224:20: warning: ‘virtual uint32_t Raster1DAbstractRGB::R(unsigned int) const’ was hidden [-Woverloaded-virtual=]
  224 |   virtual uint32_t R(unsigned x) const {return(GetValue1DRAW(3*x));}
      |                    ^
raster.h:336:18: note:   by ‘uint32_t Raster2DAbstractRGB::R(unsigned int, unsigned int)’
  336 |         uint32_t R(unsigned x, unsigned y) {return(GetValue2DRAW(3*x,y));}
      |                  ^
raster.h:226:20: warning: ‘virtual uint32_t Raster1DAbstractRGB::B(unsigned int) const’ was hidden [-Woverloaded-virtual=]
  226 |   virtual uint32_t B(unsigned x) const {return(GetValue1DRAW(3*x+2));}
      |                    ^
raster.h:360:18: note:   by ‘uint32_t Raster2DAbstractRGBA::B(unsigned int, unsigned int)’
  360 |         uint32_t B(unsigned x, unsigned y) {return(GetValue2DRAW(4*x+2,y));}
      |                  ^
raster.h:260:12: warning: ‘virtual uint32_t Raster1DAbstractRGBA::B(unsigned int) const’ was hidden [-Woverloaded-virtual=]
  260 |   uint32_t B(unsigned x) const {return(GetValue1DRAW(4*x+2));}
      |            ^
raster.h:360:18: note:   by ‘uint32_t Raster2DAbstractRGBA::B(unsigned int, unsigned int)’
  360 |         uint32_t B(unsigned x, unsigned y) {return(GetValue2DRAW(4*x+2,y));}
      |                  ^
In file included from vecimage.h:11,
                 from ras_img.cc:28:
./atoms/include/stringa.h:197:30: warning: friend declaration of ‘string del(const string&, int, int)’ specifies default arguments and isn’t a definition [-fpermissive]
  197 |           friend temp_string del(const string &s,int from, int len=1);
      |                              ^~~
vecimage.h:354:16: warning: ‘virtual void VectorList::Export2EPS(FILE*, PS_State*) const’ was hidden [-Woverloaded-virtual=]
  354 |   virtual void Export2EPS(FILE *F, PS_State *PSS=NULL) const;
      |                ^~~~~~~~~~
vecimage.h:582:8: note:   by ‘void VectorImage::Export2EPS(FILE*)’
  582 |   void Export2EPS(FILE *F) {PSS.LineJoin=PSS.LineCap=0;VectorList::Export2EPS(F,&PSS);}
      |        ^~~~~~~~~~
vecimage.h:353:23: warning: ‘virtual string VectorList::Export2EPS(PS_State*) const’ was hidden [-Woverloaded-virtual=]
  353 |   virtual temp_string Export2EPS(PS_State *PSS=NULL) const;
      |                       ^~~~~~~~~~
vecimage.h:582:8: note:   by ‘void VectorImage::Export2EPS(FILE*)’
  582 |   void Export2EPS(FILE *F) {PSS.LineJoin=PSS.LineCap=0;VectorList::Export2EPS(F,&PSS);}
      |        ^~~~~~~~~~
In file included from ras_img.cc:38:
./atoms/include/matrix.h:89:63: warning: friend declaration ‘temp_matrix<FLOAT> operator-(const matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
   89 |       friend temp_matrix<FLOAT> operator- FIX(const matrix & m);
      |                                                               ^
./atoms/include/matrix.h:89:63: note: (if this is not what you intended, make sure the function template has already been declared and add ‘<>’ after the function name here)
./atoms/include/matrix.h:92:76: warning: friend declaration ‘temp_matrix<FLOAT> operator+(const matrix<FLOAT>&, const FLOAT&)’ declares a non-template function [-Wnon-template-friend]
   92 |       friend temp_matrix<FLOAT> operator+ FIX(const matrix &, const FLOAT &);
      |                                                                            ^
./atoms/include/matrix.h:94:77: warning: friend declaration ‘temp_matrix<FLOAT> operator+(const matrix<FLOAT>&, const matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
   94 |       friend temp_matrix<FLOAT> operator+ FIX(const matrix &, const matrix &);
      |                                                                             ^
./atoms/include/matrix.h:95:76: warning: friend declaration ‘temp_matrix<FLOAT> operator-(const matrix<FLOAT>&, const FLOAT&)’ declares a non-template function [-Wnon-template-friend]
   95 |       friend temp_matrix<FLOAT> operator- FIX(const matrix &, const FLOAT &);
      |                                                                            ^
./atoms/include/matrix.h:96:76: warning: friend declaration ‘temp_matrix<FLOAT> operator-(const FLOAT&, const matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
   96 |       friend temp_matrix<FLOAT> operator- FIX(const FLOAT &, const matrix &);
      |                                                                            ^
./atoms/include/matrix.h:97:77: warning: friend declaration ‘temp_matrix<FLOAT> operator-(const matrix<FLOAT>&, const matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
   97 |       friend temp_matrix<FLOAT> operator- FIX(const matrix &, const matrix &);
      |                                                                             ^
./atoms/include/matrix.h:102:78: warning: friend declaration ‘temp_matrix<FLOAT> operator/(const FLOAT&, const matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
  102 |       friend temp_matrix<FLOAT> operator/ FIX(const FLOAT &f, const matrix &m);
      |                                                                              ^
./atoms/include/matrix.h:103:81: warning: friend declaration ‘temp_matrix<FLOAT> operator/(const matrix<FLOAT>&, const matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
  103 |       friend temp_matrix<FLOAT> operator/ FIX(const matrix &m1, const matrix &m2);
      |                                                                                 ^
./atoms/include/matrix.h:125:60: warning: friend declaration ‘temp_matrix<FLOAT> transpose(matrix<FLOAT>&)’ declares a non-template function [-Wnon-template-friend]
  125 |       friend temp_matrix<FLOAT> transpose FIX( matrix  & m );
      |                                                            ^
ras_img.cc: In function ‘int SavePictureEPS(const char*, const Image&)’:
ras_img.cc:1550:13: warning: enumeration value ‘ImagePaletteF’ not handled in switch [-Wswitch]
 1550 |       switch(CurrImg->ImageType())
      |             ^
ras_img.cc:1550:13: warning: enumeration value ‘ImageReal’ not handled in switch [-Wswitch]
ras_img.cc:1550:13: warning: enumeration value ‘ImageSigned’ not handled in switch [-Wswitch]
ras_img.cc:1625:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
 1625 |         for(int i=0; i<sizeof(PsDict)/sizeof(TDictionaryPS); i++)
      |                      ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ras_img.cc: In function ‘Image LoadPictureFITS(const char*)’:
ras_img.cc:1771:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1771 |         identifier[pos++] = c;
      |                    ~~~^~
ras_img.cc:1772:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1772 |         identifier[pos] = 0;
      |                    ^~~
ras_img.cc:1782:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1782 |         value[pos++] = c;
      |               ~~~^~
ras_img.cc:1783:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1783 |         value[pos] = 0;
      |               ^~~
ras_img.cc:1788:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1788 |         if(!isspace((unsigned char)value[pos])) break;
      |                                          ^~~
ras_img.cc:1789:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1789 |         value[pos--] = 0;
      |               ~~~^~
ras_img.cc:1798:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1798 |         comment[pos++] = c;
      |                 ~~~^~
ras_img.cc:1799:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1799 |         comment[pos] = 0;
      |                 ^~~
ras_img.cc:1804:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1804 |         if(!isspace((unsigned char)comment[pos])) break;
      |                                            ^~~
ras_img.cc:1805:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
 1805 |         comment[pos--] = 0;
      |                 ~~~^~
ras_img.cc:1819:15: warning: enumeration value ‘ExtensionData’ not handled in switch [-Wswitch]
 1819 |         switch(ParseStatus)
      |               ^
ras_img.cc:1819:15: warning: enumeration value ‘ExtensionBinData’ not handled in switch [-Wswitch]
ras_img.cc:1868:12: warning: enumeration value ‘ExtensionData’ not handled in switch [-Wswitch]
 1868 |      switch(ParseStatus)
      |            ^
ras_img.cc:1868:12: warning: enumeration value ‘ExtensionBinData’ not handled in switch [-Wswitch]
ras_img.cc: In function ‘Image LoadPictureSGI(const char*)’:
ras_img.cc:4701:1: error: jump to label ‘FINISH_UNALLOC2’
 4701 | FINISH_UNALLOC2:
      | ^~~~~~~~~~~~~~~
ras_img.cc:4604:19: note:   from here
 4604 |              goto FINISH_UNALLOC2;
      |                   ^~~~~~~~~~~~~~~
ras_img.cc:4610:20: note:   crosses initialization of ‘unsigned char* RLE_packet’
 4610 |     unsigned char *RLE_packet = (unsigned char *)malloc(sizeof(unsigned char *)*max_packets_alloc_size);
      |                    ^~~~~~~~~~
ras_img.cc:4701:1: error: jump to label ‘FINISH_UNALLOC2’
 4701 | FINISH_UNALLOC2:
      | ^~~~~~~~~~~~~~~
ras_img.cc:4592:14: note:   from here
 4592 |         goto FINISH_UNALLOC2;
      |              ^~~~~~~~~~~~~~~
ras_img.cc:4610:20: note:   crosses initialization of ‘unsigned char* RLE_packet’
 4610 |     unsigned char *RLE_packet = (unsigned char *)malloc(sizeof(unsigned char *)*max_packets_alloc_size);
      |                    ^~~~~~~~~~
ras_img.cc:4599:18: note:   crosses initialization of ‘const size_t file_size’
 4599 |     const size_t file_size = FileSize(f);
      |                  ^~~~~~~~~
ras_img.cc:4703:1: error: jump to label ‘FINISH_UNALLOC’
 4703 | FINISH_UNALLOC:
      | ^~~~~~~~~~~~~~
ras_img.cc:4589:14: note:   from here
 4589 |         goto FINISH_UNALLOC;
      |              ^~~~~~~~~~~~~~
ras_img.cc:4610:20: note:   crosses initialization of ‘unsigned char* RLE_packet’
 4610 |     unsigned char *RLE_packet = (unsigned char *)malloc(sizeof(unsigned char *)*max_packets_alloc_size);
      |                    ^~~~~~~~~~
ras_img.cc:4599:18: note:   crosses initialization of ‘const size_t file_size’
 4599 |     const size_t file_size = FileSize(f);
      |                  ^~~~~~~~~
ras_img.cc:4703:1: error: jump to label ‘FINISH_UNALLOC’
 4703 | FINISH_UNALLOC:
      | ^~~~~~~~~~~~~~
ras_img.cc:4582:14: note:   from here
 4582 |         goto FINISH_UNALLOC;
      |              ^~~~~~~~~~~~~~
ras_img.cc:4610:20: note:   crosses initialization of ‘unsigned char* RLE_packet’
 4610 |     unsigned char *RLE_packet = (unsigned char *)malloc(sizeof(unsigned char *)*max_packets_alloc_size);
      |                    ^~~~~~~~~~
ras_img.cc:4599:18: note:   crosses initialization of ‘const size_t file_size’
 4599 |     const size_t file_size = FileSize(f);
      |                  ^~~~~~~~~
ras_img.cc:4563:12: warning: unused variable ‘iris_pixels_size’ [-Wunused-variable]
 4563 |     size_t iris_pixels_size,
      |            ^~~~~~~~~~~~~~~~
ras_img.cc: In function ‘int SavePictureTIFF(const char*, const Image&)’:
ras_img.cc:5283:17: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘char’ [-Wsign-compare]
 5283 |       for(i=0; i<CurImg->Raster->Channels(); i++)
      |                ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ras_img.cc: In function ‘int SavePictureTXTgm(const char*, const Image&)’:
ras_img.cc:6211:54: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 8 has type ‘long int’ [-Wformat=]
 6211 |                    fprintf(f,"%u,%u: (%u,%u,%u) #%6.6X\n", j, i,
      |                                                  ~~~~^
      |                                                      |
      |                                                      unsigned int
      |                                                  %6.6lX
 6212 |                           RGB.R, RGB.G, RGB.B, (long)((RGB.R<<16)|(RGB.G<<8)|RGB.B));
      |                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                |
      |                                                long int
ras_img.cc:6219:57: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 9 has type ‘long int’ [-Wformat=]
 6219 |                    fprintf(f,"%u,%u: (%u,%u,%u,%u) #%6.6X\n", j, i,
      |                                                     ~~~~^
      |                                                         |
      |                                                         unsigned int
      |                                                     %6.6lX
 6220 |                           RGB.R, RGB.G, RGB.B, RGB.O, (long)((RGB.R<<24)|(RGB.G<<16)|(RGB.B<<8)|RGB.O));
      |                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       long int
ras_img.cc: In function ‘Image LoadPictureWBMP(const char*)’:
ras_img.cc:6293:42: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
 6293 |     if(fread(Img.Raster->GetRow(y),1,i,f)!=i) break;
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ras_img.cc: In function ‘int SavePictureWBMP(const char*, const Image&)’:
ras_img.cc:6335:6: warning: unused variable ‘k’ [-Wunused-variable]
 6335 | char k;
      |      ^
ras_img.cc:6337:19: warning: unused variable ‘dummy’ [-Wunused-variable]
 6337 | static const char dummy = 0;
      |                   ^~~~~
ras_img.cc: In function ‘int UnpackWPGRaster(Raster2DAbstract*, FILE*)’:
ras_img.cc:6988:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 6988 |                         if(y>=Raster->Size2D) BObrPos=(uint8_t *)Raster->GetRow(0);
      |                         ^~
ras_img.cc:6989:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 6989 |                                               BObrPos=(uint8_t *)Raster->GetRow(y);
      |                                               ^~~~~~~
ras_img.cc: In function ‘int UnpackWPG2Raster(Raster2DAbstract*, FILE*)’:
ras_img.cc:7077:25: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
 7077 |                         if(y>=Raster->Size2D) BObrPos=(uint8_t *)Raster->GetRow(0);
      |                         ^~
ras_img.cc:7078:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
 7078 |                                               BObrPos=(uint8_t *)Raster->GetRow(y);
      |                                               ^~~~~~~
ras_img.cc: In function ‘int DecodeColorXPM(char*, RGBQuad&)’:
ras_img.cc:7976:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
 7976 |     for(int j=0; j<sizeof(X11ColorNames)/sizeof(X11ColorName); j++)
      |                  ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ras_img.cc: In function ‘Image LoadPictureXPM3(const char*)’:
ras_img.cc:8261:12: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
 8261 |  for(i=0; i<Line.length(); i++)
      |           ~^~~~~~~~~~~~~~
ras_img.cc:8301:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
 8301 |      for(i=0; i<nColors; i++)
      |               ~^~~~~~~~
ras_img.cc:8314:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
 8314 |    for(i=0; i<nColors; i++)
      |             ~^~~~~~~~
ras_img.cc:8349:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
 8349 |      for(i=0; i<nColors; i++)
      |               ~^~~~~~~~
ras_img.cc:8364:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
 8364 |      for(i=0; i<nColors; i++)
      |               ~^~~~~~~~
make[1]: *** [makefile:132: release/ras_img.o] Error 1
make[1]: Leaving directory '/home/jara/pictures/src.cpp'
make: *** [makefile:12: default] Error 2
